package com.zc.utils.redisThread;

import com.zc.service.JedisClient;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class ThreadRedisRead implements Runnable {
    @Resource
    private JedisClient jedis;
    @Override
    public void run() {
        jedis.subscribe("redisMessage");
    }
}
